<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
  <script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=RjELxBH02RIyZPjhgxymZSSX1ZfjpbI0"></script>
  <title>搜索区域内关键词</title>
  <style>
    body,
    html,
    #container {
      overflow: hidden;
      width: 100%;
      height: 100%;
      margin: 0;
      font-family: "微软雅黑";
    }
    .info {
      z-index: 999;
      width: auto;
      min-width: 22rem;
      padding: .75rem 1.25rem;
      margin-left: 1.25rem;
      position: fixed;
      top: 1rem;
      background-color: #fff;
      border-radius: .25rem;
      font-size: 14px;
      color: #666;
      box-shadow: 0 2px 6px 0 rgba(27, 142, 236, 0.5);
    }
  </style>
</head>
<body>
<div id="container"></div>
<div class="info">返回北京市矩形框区域范围内的“银行”关键字的检索结果，并展示在地图上</div>
</body>
</html>
<script type="text/javascript">
  // 百度地图API功能
  var map = new BMapGL.Map("container");            // 创建Map实例
  var point = new BMapGL.Point(116.404, 39.915)
  map.centerAndZoom(point, 16);
  map.enableScrollWheelZoom();                            //启用滚轮放大缩小


  var local = new BMapGL.LocalSearch(map,{renderOptions:{map:map,autoViewport:false}});
  local.searchNearby('景点',point,1000)


  var circle = new BMapGL.Circle(point ,1000, {fillColor:"blue",strokeColor:"red",strokeWeight:1,} )
  map.addOverlay(circle)

</script>